package org.jeecg.modules.golf.question.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.golf.plan.client.MyPlanAnalysisDTO;
import org.jeecg.modules.golf.plan.client.MyPlanAnalysisQueryDTO;
import org.jeecg.modules.golf.question.client.TrainAnalysisDTO;
import org.jeecg.modules.golf.question.client.qto.QuestionQueryPageDTO;
import org.jeecg.modules.golf.question.entity.MyQuestionPlan;
import org.jeecg.modules.golf.question.mapper.MyQuestionPlanMapper;
import org.jeecg.modules.golf.question.service.IMyQuestionPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 我的问题解决方案
 * @Author: jeecg-boot
 * @Date:   2020-11-21
 * @Version: V1.0
 */
@Service
public class MyQuestionPlanServiceImpl extends ServiceImpl<MyQuestionPlanMapper, MyQuestionPlan> implements IMyQuestionPlanService {

	@Autowired
	private MyQuestionPlanMapper myQuestionPlanMapper;

	@Override
	public List<MyQuestionPlan> selectByMainId( Long mainId) {
		return myQuestionPlanMapper.selectByMainId(mainId);
	}

	@Override
	public IPage<TrainAnalysisDTO> trainAnalysis(QuestionQueryPageDTO<TrainAnalysisDTO> questionQueryPageDTO) {
		return getBaseMapper().trainAnalysis(questionQueryPageDTO);
	}

	@Override
	public IPage<MyPlanAnalysisDTO> planAnalysis(MyPlanAnalysisQueryDTO myPlanAnalysisQueryDTO){
		return getBaseMapper().planAnalysis(myPlanAnalysisQueryDTO);
	}

}
